package com.xuecheng.manage_course.controller;


import com.xuecheng.api.course.CourseControllerApi;

import com.xuecheng.framework.domain.course.CoursePic;
import com.xuecheng.framework.domain.course.Teachplan;
import com.xuecheng.framework.domain.course.TeachplanMedia;
import com.xuecheng.framework.domain.course.ext.CourseView;
import com.xuecheng.framework.domain.course.ext.TeachplanNode;
import com.xuecheng.framework.domain.course.response.CoursePublishResult;
import com.xuecheng.framework.model.response.ResponseResult;

import com.xuecheng.manage_course.service.impl.TeachplanServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author testjava
 * @since 2020-12-07
 */
@RestController
@RequestMapping("/manage_course/teachplan")
public class TeachplanController implements CourseControllerApi {

    @Autowired
    TeachplanServiceImpl teachplanService;

    @Override
    @GetMapping("/findTeachplanList/{courseId}")
    public TeachplanNode findTeachplanList(@PathVariable("courseId") String courseId) {
        return teachplanService.findTeachplanList(courseId);
    }

    @Override
    public ResponseResult addTeachplan(Teachplan teachplan) {
        return null;
    }

    @Override
    public ResponseResult addCoursePic(String courseId, String pic) {
        return null;
    }

    @Override
    public CoursePic findCoursePic(String courseId) {
        return teachplanService.findCoursePic(courseId);
    }

    @Override
    public ResponseResult deleteCoursePic(String courseId) {
        return null;
    }

    @Override
    public CourseView courseview(String id) {
        return null;
    }

    @Override
    public CoursePublishResult preview(String id) {
        return null;
    }

    @Override
    public CoursePublishResult publish(String id) {
        return null;
    }

    @Override
    public ResponseResult savemedia(TeachplanMedia teachplanMedia) {
        return null;
    }

}

